# Server code
import SimpleXMLRPCServer
class RPCMethods:
    def get_msg(self, msg, times):
        return msg * times
    
server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000))
server.register_instance(RPCMethods())
server.serve_forever()


